package com.yunduo.mapper;

import com.yunduo.entity.ShopGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ChengXin
 * @since 2023-07-22
 */
public interface ShopGoodsMapper extends BaseMapper<ShopGoods> {
    //更改商品状态
    boolean updateStateById(@Param("id") String id,@Param("value") int value);
    //批量删除店铺中绑定的商品
    boolean removeByShopAndGoodIds(@Param("shopId") String shopId,@Param("goodIds") String[] goodIds);
}
